//
// Created by xy on 2024/10/23.
//

#include "sql.h"
#include "public.h"
#include "log.h"

void test_sql(){
  MYSQL *mysql = NULL;
  if (init_mysql(&mysql)){
    printf("连接数据库成功\n");
  }else{
    return;
  }
/*
  if(utils_remove_file(mysql,"bob","/home/projects")){
    printf("删除成功\n");
  }else{
    printf("删除失败\n");
  }
  */
/*
  if(utils_register(mysql,"12312313123","123")){
    printf("注册成功");
  }else{
    INFO_LOG("失败");
  }
*/

  if(utils_logout(mysql,"888")){
    printf("登录成功");
  }else{
    INFO_LOG("失败");
  }

}

int main(int argc,char* argv[]){

  initLog(100);

  test_sql();

  return 0;
}